Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

251
Visualizações
Three.js Error: "Feedback loop formed between Framebuffer and active Texture" - Rendering Reflections

I'm using a CubeCamera with WebGLCubeRenderTarget to render out the surrounding reflection similar to the example here - https://threejs.org/examples/#webgl_materials_cubemap_dynamic

But the example keeps giving this error:
[.WebGL-000052760009C700] GL_INVALID_OPERATION: Feedback loop formed between Framebuffer and active Texture.
Anyone see the issue? My Code:

const reflection=()=> {

        renderer.outputEncoding = THREE.sRGBEncoding; // for post processing pass

        cubeRenderTarget1 = new THREE.WebGLCubeRenderTarget( 256, {
            format: THREE.RGBFormat,
            generateMipmaps: true,
            minFilter: THREE.LinearMipmapLinearFilter,
            encoding: THREE.sRGBEncoding // prevents the material's shader from recompiling every frame
        } );

        cubeCamera1 = new THREE.CubeCamera( .01, 10, cubeRenderTarget1 );
        cubeCamera1.position.z = 3
        cubeCamera1.position.y = -4

        reflectionMaterial = new THREE.MeshBasicMaterial( {
            envMap: cubeRenderTarget1.texture,
            color: 0x011111,
        } );

    }
    reflection()


gltfLoader.load(
          '/exportPackages/sceneMaya.glb', 
          (gltf) =>
          {   

            let meshGLB= gltf.scene.children.find(child => child.name === 'mesh_0')

            meshGLB.material = reflectionMaterial 
            
            scene.add(gltf.scene)           
          })



const animate =()=> {
     cubeCamera1.update( renderer, scene ); }; animate()
about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

The Fix: I needed to add

meshGLB.visible = false;
cubeCamera1.update( renderer, scene );
meshGLB.visible = true;

in my animate() to keep the material from rendering itself.

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda